package com.luhui.codereview

import java.util.*
import java.io.InputStreamReader



/**
 * @author  luhui
 * @date  2019/10/29 22:20
 * @version 1.0
 */
private var properties: Properties = Properties()

fun load(){
    properties.load(InputStreamReader(CodeReviewProjectComponent::class.java.getResourceAsStream("/languages/language-zh.properties"), "GBK"))
}


fun getMessage(key:String): String {
    return properties[key] as String
}